* Funk, Paul and Philips
* "Point Break: Using Machine Learning to Uncover a Critical Mass in Women’s Representation", Forthcoming at PSRM
*
*
* Last Updated: 7/19/21
* Replication for Table 1 
* -----------------------------------------------------------------------------
use funk-paul-philips-replication.dta, clear
set seed 590381  
xtset newccode year

mkspline wom1 20.5 wom2 39.5 wom3 = percent_women_Q, displayknots

global educcontrols Populationdensitypeoplepers PopulationtotalSPPOPTOTL Laborforcefemaleoftotal Prevalenceofanemiaamongnonp Populationfemaleoftotal polity2 Laborforceparticipationrate TradeofGDPNETRDGNFSZS Employmenttopopulationratio Ruralpopulationoftotalpop Importsofgoodsandservices

tab year, ge(y)

* Table 1:
* model w/ no breakpoint
xtreg percent_education percent_women_Q $educcontrols y26-y41, fe
estat ic
* model w/ breakpoint
xtreg percent_education c.(wom1 wom2 wom3) $educcontrols y26-y41, fe
test wom1 = wom2 // low vs middle
test wom2 = wom3 // middle vs high
test wom1 = wom3 // low vs high
estat ic
